package com.pocket.demo.core.log;

import ch.qos.logback.classic.pattern.ClassicConverter;
import ch.qos.logback.classic.spi.ILoggingEvent;
import com.pocket.demo.base.system.PocketSystemInfo;

/**
 * logback 服务IP 格式转换器
 *
 * @author cookie.
 **/
public class ServerIpConverter extends ClassicConverter {
    public String convert(ILoggingEvent event) {
        return getIp();
    }

    public static String getIp() {
     return PocketSystemInfo.serverIp;
   }
}
